package com.example.fw;

import org.netbeans.jemmy.operators.JMenuBarOperator;
import org.netbeans.jemmy.operators.JTreeOperator;

public class MenuHelper extends HelpersBase {

	public MenuHelper(ApplicationManager applicationManager) {
		super(applicationManager);
	}

	public void pushCreateFolder() {		
		JMenuBarOperator menu = new JMenuBarOperator(mainFrame);
		menu.pushMenuNoBlock("File|New Folder...");
	}
	
	public void pushDeleteFolder(){
		JMenuBarOperator menu = new JMenuBarOperator(mainFrame);
		menu.pushMenuNoBlock("File|Delete");
	}
	
	public void selectFolder() {
		manager.getMenuHelper().pushDeleteFolder();
		JTreeOperator jTree = new JTreeOperator(mainFrame);
		jTree.selectRow(0);	
	}
}
